package com.ruikc.study.demo.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;

import java.io.Serial;


/**
 *  实体类。
 *
 * @author zhiyuan
 * @since 2025-02-22
 */
@Table("sales")
public class Sales implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 销售订单的唯一标识符，自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer saleId;

    /**
     * 销售日期
     */
    private String saleDate;

    /**
     * 销售单序列号
     */
    private String serialNumber;

    /**
     * 制单人的用户 ID
     */
    private Integer userId;

    /**
     * 销售单的总销售金额
     */
    private BigDecimal totalAmount;

    private String createdAt;

    private String updatedAt;

    private String deletedAt;

    /**
     * 销售客户
     */
    private Integer vendorId;

    /**
     * 客户名称
     */
    private String vendorTitle;

    /**
     * 10-未收款 20-部分收款 30-完成收款
     */
    private Integer payStatus;

    /**
     * 支付数量
     */
    private Integer payNumber;

    /**
     * 销售数量
     */
    private Integer totalNumber;

    public Integer getSaleId() {
        return saleId;
    }

    public void setSaleId(Integer saleId) {
        this.saleId = saleId;
    }

    public String getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(String saleDate) {
        this.saleDate = saleDate;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(String deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Integer getVendorId() {
        return vendorId;
    }

    public void setVendorId(Integer vendorId) {
        this.vendorId = vendorId;
    }

    public String getVendorTitle() {
        return vendorTitle;
    }

    public void setVendorTitle(String vendorTitle) {
        this.vendorTitle = vendorTitle;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getPayNumber() {
        return payNumber;
    }

    public void setPayNumber(Integer payNumber) {
        this.payNumber = payNumber;
    }

    public Integer getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(Integer totalNumber) {
        this.totalNumber = totalNumber;
    }

}
